README File: Analysis Replication for: "Trust in Government and American Public Opinion Toward Foreign Aid"

Instructions for Replication 

(1) Software Used: Stata 18 

(2) Packages Required: outreg2 (to export tables)
    (a) Run the following code in Stata to install this package: ssc install outreg2
    (b) No other packages are necessary as all functions come pre-installed with this version of Stata 

(3) Replicating the Main Analyses Using Stata's Do File Editor
    (a) First, using Stata's do file editor, clear the workspace and set the working directory to your computer's location 
        clear
	use "C:\Users\Your Name\Folder\Subfolder\Name of Data.dta" (this is an example of a working directory name)
    (b) Then select the relevant lines of code and click the "run" button in Stata's Do File Editor
    (c) Tables 1-4 (in the main paper) can be exported to a variety of word processing programs and cosmetic labeling/formatting changes can be made there
	outreg2 using tab.tex exports the tables to Latex
	outreg2 using tab.docx exports the tables to MS Word
	The replace command replaces a regression model in a particular table; the append command adds a model to the right of an existing one
    (d) The marginsplot command is used to create Figure 1 in the main paper
        Cosmetic changes to this figure were made manually using point-and-click features in Stata's graph editor

(4) Outputs
    (a) Tables will be exported to Latex for editing/configuration in TexStudio
    (b) You can easily change this to export to MS Word by replacing the code: outreg2 using tab.tex with the code: outreg2 using tab.docx
    (c) Figures will appear in Stata's graph editor. This is where various cosmetic changes can be made
    (d) Figures can be saved (via Stata's graph editor) in a .gph format, but it can also be saved variety of formats including: .pdf, .png, .jpg, etc  

(5) Machine Information 
    (a) OS: Windows 11 Home Version 64-bit     
    (b) RAM: 16 GB
    (c) Stata Version: 18

(6) Contact: For any questions, please reach out to David Macdonald at davidmacdonald@ufl.edu

	
